<?php
/**
 * bll base
 * @package app-drama_lib_bll
 */
load_lib('/bll/bll');
load_lib('/dao/basedao');
/**
 * bll base
 * @author pandajingjing
 * @package app-drama_lib_bll
 */
class bll_base extends bll_bll{

	/**
	 * 给文件分配路径
	 * @param string $p_strFileKey
	 * @return string
	 */
	protected function dispatchFile($p_strFileKey){
		$intDispatchKey=abs(crc32($p_strFileKey));
		$strDir='';
		while($intDispatchKey>0){
			$strSubDir=$intDispatchKey%100;
			$strDir=$strSubDir.DIRECTORY_SEPARATOR.$strDir;
			$intDispatchKey=intval($intDispatchKey/100);
		}
		return DIRECTORY_SEPARATOR.$strDir;
	}
	
	/**
	 * 获取节目分辨率列表
	 * @return array
	 */
	function getRatioList(){
	    return dao_basedao::getRatioList(array(
	            'SORT'=>'DORDER desc'
	    ));
	}
}